import gradio as gr
import cv2


def to_black(image):
    output = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    return output


interface = gr.Interface(fn=to_black, inputs=[gr.CheckboxGroup(["选项1", "选项2", "选项3"], label="选择你的兴趣"),"image"], outputs="image")


interface.launch()